//Benke pdf. C6 p17.

#include <stdio.h>

int main()
{
    int i, j, break_flag = 0;
    for (i = 1; i <= 3; i++)
    {
        for (j = 1; j <= 10; j++)
        {
            if (j % 3 == 0)
                goto L1;
            printf("%6d %6d\n", i, j);
        }
    }
L1:
    return 0;
}

/* int n = 0;
int main(void)
{
    printf("input a string: ");
loop:
    if (getchar() != '\n')
    {
        n++;
        goto loop;
    }
    printf("output: %d\n", n);
} */